package com.zzyy.study.rabbitmq;

import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

import java.security.MessageDigest;

/**
 * @auther zzyy
 * @create 2024-07-07 16:06
 */
@Component
@Slf4j
public class RabbitMQConsumer
{
    @RabbitListener(queues = QueueConstants.TEST)
    private void receive(String message)
    {
        log.info("{}", message);
    }
}
